<template>
  <div>
    <a @click="toBd('10',20,30,$event,40)" href="https://www.baidu.com">去百度</a>
  </div>
</template>

<script>
export default {
 

  data() {
    return {
      
    };
  },


  methods: {
    toBd(a,...arg){
        console.log('点我',a)
        // e.preventDefault()
        console.log(arg)
        console.log(arg[2])
        arg[2].preventDefault()
    }
  },
};
</script>

<style >

</style>